﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlDieuChinhTonKho.ascx.cs" Inherits="UserControl_ControlDieuChinhTonKho" %>
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

 <%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dxpc" %>


<script type="text/javascript">
    function pageLoad() {

        //Ngày

        $("#<%= txtNgay.ClientID %>").datePicker(
	                {
	                    clickInput: true,
	                    startDate: '01/01/1970'
	                });
	           


        $("#<%= imgBtnAdd.ClientID %>").click(function () {

            $.blockUI({
                message: '<h1>Xin vui lòng chờ xử lý</h1>',
                css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: '#f00',
                    opacity: .5,
                    color: '#fff'
                }
            });

        });
        $("#<%= ImgBtnApprove.ClientID %>").click(function () {

            $.blockUI({
                message: '<h1>Xin vui lòng chờ xử lý</h1>',
                css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: '#f00',
                    opacity: .5,
                    color: '#fff'
                }
            });

        });
   
       
  

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            $.unblockUI();
        }
    }

</script>


<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     
     <div class="direct_container_right_titletop direct_colleft">
                    Cập nhật tồn cuối hàng ngày cho DKSH
                </div>
                 <hr />
               
                <!-- Button chuc nang-->
                <div class="direct_menu_report_page direct_colleft">
                    <asp:ImageButton ID="imgBtnAdd" CausesValidation="false" onclick="imgBtnAdd_Click" ToolTip="Lấy dữ liệu"  ImageUrl="~/Images/Document.png" Width="32px" Height="32px" runat="server" />
                   
                  <asp:ImageButton ID="ImgBtnApprove" onclick="ImgBtnApprove_Click" CausesValidation="false" ToolTip="Lưu thông tin" ImageUrl="~/Images/Edit file.png" Width="32px" Height="32px" runat="server" />
                </div>
                <!-- End Button chuc nang-->
                <div class="clear">
                    
        </div>
                  <hr />
                   Chọn ngày: <asp:TextBox ID="txtNgay"  CssClass="input_code" runat="server"></asp:TextBox>
                 <table>
               
                  <tr>
                  <td>
                  
                       <asp:GridView ID="grvProduct" runat="server" AutoGenerateColumns="False" 
                                            DataKeyNames="itemkey">
                                            <Columns>
                                                <asp:TemplateField HeaderText="Stt">
                                                    <HeaderTemplate>
                                                        STT
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <%# Container.DataItemIndex + 1 %>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" Width="50px" />
                                                    <ItemStyle Height="40px" HorizontalAlign="Left" Width="50px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Mã sản phẩm">
                                                    <HeaderTemplate>
                                                        Mã sản phẩm
                                                    </HeaderTemplate>
                                                    <ItemTemplate>       
                                                                                                  
                                                          <asp:Label ID="lblMaSo" runat="server" Text='<%# Eval("itemkey")%>'></asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" Width="150px" />
                                                    <ItemStyle Height="40px" HorizontalAlign="Left" Width="150px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Tên sản phẩm">
                                                    <HeaderTemplate>
                                                        Tên sản phẩm
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbldescription" runat="server" Text='<%# Eval("description")%>'></asp:Label>                                                        
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" Width="300px" />
                                                    <ItemStyle Height="40px" HorizontalAlign="Left" Width="300px" />
                                                </asp:TemplateField>
                                                
                                                 <asp:TemplateField HeaderText="Thanh Xuân">
                                                    <HeaderTemplate>
                                                        Thanh Xuân
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="lblStockThanhXuan" Text='<%# Eval("StockThanhXuan")%>' runat="server"></asp:TextBox>
                                                                                                              
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" Width="100px" />
                                                    <ItemStyle Height="40px" HorizontalAlign="Left" Width="100px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Đà Nẵng">
                                                    <HeaderTemplate>
                                                       Đà Nẵng
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                    <asp:TextBox ID="lblStockDaNang" Text='<%# Eval("StockDaNang")%>' runat="server"></asp:TextBox>
                                                          
                                                                                                              
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" Width="100px" />
                                                    <ItemStyle Height="40px" HorizontalAlign="Left" Width="100px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="VSIP">
                                                    <HeaderTemplate>
                                                        VSIP
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                    <asp:TextBox ID="lblStockVSIP" Text='<%# Eval("StockVSIP")%>' runat="server"></asp:TextBox>
                                                     
                                                                                                               
                                                    </ItemTemplate>
                                                    <HeaderStyle HorizontalAlign="Left" Width="100px" />
                                                    <ItemStyle Height="40px" HorizontalAlign="Left" Width="100px" />
                                                </asp:TemplateField>
                                               
                                            </Columns>
                                        </asp:GridView>
                  
                  </td>
                  </tr>
                           
                 </table>
                  
              
            <dxpc:ASPxPopupControl ID="MessageBox" PopupHorizontalAlign="WindowCenter"  PopupVerticalAlign="WindowCenter" Font-Bold="true" HeaderText="DRM-S" runat="server" Height="91px" 
        Width="601px">
        <ContentCollection>
<dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True"></dxpc:PopupControlContentControl>
</ContentCollection>
    </dxpc:ASPxPopupControl>
    </ContentTemplate>
</asp:UpdatePanel>

